<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>修改单位</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here" />
    <meta http-equiv="description" content="A short description of this page." />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="${basePath}css/cmxform.css" />
    <#include "/template/head.html">
    <script language="javascript">
    $.metadata.setType("attr", "validate");
    $(function() {
      $('#dwdmForm').validate();
      $("#resetDlmm").click(function(){
      	$.get("${basePath}admin/dwdm/resetDlmm.do",{dwid: $("#dwid").val()},function(data){alert(data.msg);});
      })
    });
    </script>
  </head>
  <body>
    <br />
    <form id="dwdmForm" action="${basePath}/admin/dwdm/update.do" method="post">
      <input type="hidden" id="dwid" name="dwid" value="${dwdm.dwid}"/>
      <table  class="cmxform" style="width: 85%" cellspacing="1">
        <caption>修&nbsp;&nbsp;&nbsp;改&nbsp;&nbsp;&nbsp;单&nbsp;&nbsp;&nbsp;位</caption>
        <tr>
          <th width="20%"><label for="sjdwmc">上级单位：</label> </th>
          <td><input name="sjdwmc" value="${sjdwmc}" class="disabled" disabled/></td>
        </tr>
        <tr>
          <th><label for="role.id">角色：</label></th>
          <td>
            <select name="role.id" class="required">
              <option value="">--选择--</option>
              <#list roles as item>
              <option value="${item.id}" <#if dwdm.role?? && dwdm.role.id?? && dwdm.role.id==item.id> selected </#if>>${item.roleName}</option>
              </#list>
            </select>
          </td>
        </tr>
        <tr>
          <th><label for="dlmc">登录名称：</label></th>
          <td>
            <input name="dlmc" value="${dwdm.dlmc}" class="disabled" disabled/>
          </td>
        </tr>
        <tr>
          <th><label for="dwmc">单位名称：</label></th>
          <td><input name="dwmc" value="${dwdm.dwmc}"/></td>
        </tr>
        <tr>
          <th><label for="qq">QQ号码：</label></th>
          <td><input name="qq" value="${dwdm.qq}" class="number"/></td>
        </tr>
        <tr>
          <th><label for="email">邮箱：</label></th>
          <td><input name="email" value="${dwdm.email}" class="email"/></td>
        </tr>
        <tr>
          <th><label for="tel">电话号码：</label></th>
          <td><input name="tel" value="${dwdm.tel}" class="tel"/></td>
        </tr>
        <tr>
          <th></th>
          <td colspan="3">
            <button type="button" onclick="$('#dwdmForm').submit()" class="save"></button>&nbsp;&nbsp;&nbsp;
            <button id="resetDlmm" type="button" class="resetDlmm"></button>
          </td>
        </tr>
      </table>
    </form>
  </body>
</html>
